package cn.mothin.dao;
 
import org.springframework.stereotype.Repository;

import cn.mothin.entity.SystemConfigType;
import cn.mothin.frame.core.base.BaseDao;
@Repository ("30d0df82-d9f0-44f8-b634-e0c86aad84d0")
public class SystemConfigTypeDao extends BaseDao<SystemConfigType>{ 
	
	public long getCountByName(String name) {
		String sql = "SELECT COUNT(0) FROM system_config_type WHERE name=?";
		return sqlHelper.queryCount(sql, name);
	}
	
	public long getCountById(String id) {
		String sql = "SELECT COUNT(0) FROM system_config_detail WHERE systemConfigTypeId = ?";
		return sqlHelper.queryCount(sql, id);
	}
}


